
<div id="InputForm">
<p>Sök efter en bokning med en annvändares email</p>
<hr />
	
	<?php echo form_open('admin/admin/searchbookings');?>
	
	<ul>
		<li>
			Annvändarens email
			<div>
				<?php echo form_input(array('id'=>'mail','name'=>'mail','value'=> set_value('username'))); ?>
			</div>
			<?php echo form_submit(array('id'=>'search'),'Sök'); ?>
		</li>		

	</ul>
	<?php echo form_close();?>
	
</div>

<div>
<ul>

<?php

	foreach($bookings as $row)
	{
	
		
		
	echo "<li>";
				 echo form_open('admin/admin/search');
				 echo '<div id="bookings" align="center"  style="height:90px; width:500px; border-style:solid" >';
				 echo "<b>Annvändare:  </b>";	
				 echo $row['KundID'];
			 	 echo "  ";
				 
				 echo "<b>Bil ID:  </b>";	
				 echo $row['BilID'];
			 	 echo "  ";
				 
				 echo "<b>Start tid:  </b>";	
				 echo $row['StartTid'];
			 	 echo "  ";
				 
				 
				 echo "<b>Slut tid:  </b>";	
				 echo $row['SlutTid'];
				 echo "  ";
				 
				 echo "<b>Rabatt ID: </b>";	
				 echo $row['RabattID'];
			 	 echo "  ";
				 
				 echo "<b>Nyckeln utelämnad?: </b>";	
				 echo $row['NyckelUte'];
			 	 echo "  ";
				 
				 
				 echo "<b>Totalt pris: </b>";	
				 echo $row['totalPrice'];
			 	 echo "  ";
				 
				 echo "  <br/>";	
				
				 echo form_submit(array('id'=>'btnChange', 'name'=>'btnChange'),'Ändra'); 
				 echo "<div />";
				 
				 echo form_Close();
			 	 echo "  <br/>";	
		echo "</li>";
		

	}

?>




</ul>
</div>